package com.kaibes.platform.member.util;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.kaibes.platform.member.db.MemberLevel;
import com.kaibes.platform.member.db.MemberLevelService;

@Component
public class MemberLevelUtils {

    @Autowired
    private MemberLevelService memberLevelService;
    
    public MemberLevel getIdNameLevel(long experience) {
        MemberLevel memberLevel = memberLevelService.getIdAndLevelAndNameByExperience(experience);
        return memberLevel;
    }
    
}
